const express = require('express');
const router = express.Router();
const customController = require('../controllers/custom');
const { customGenerateValidator } = require('../middleware/validator');

/**
 * @route POST /api/custom/generate
 * @desc 生成个性化定制资源
 * @access Public
 */
router.post('/generate', customGenerateValidator, customController.generateCustomResource);

/**
 * @route GET /api/custom/:resourceId
 * @desc 获取个性化定制资源详情
 * @access Public
 */
router.get('/:resourceId', customController.getCustomResourceDetail);

module.exports = router;